package com.sdutcm.xuake.xuanke_demo.service;

import com.sdutcm.xuake.xuanke_demo.bean.GuaKeInfo;
import com.sdutcm.xuake.xuanke_demo.dao.GuaKeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-09-20 01:41
 * @package com.sdutcm.xuake.xuanke_demo.service
 * @description
 */
@Service
public class GuaKeService {
    @Autowired
    GuaKeDao guaKeDao;
    public List<GuaKeInfo> getByXueHao(int xuehao){
        return guaKeDao.findByUsername(xuehao);
    }
}
